﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using IFClientDLL;
using IFClientDLL.Model;
using HCY.CTP.DBShangZheng;
using IFServerDLL.DB;

namespace IFViewDetail.KuaiQi
{
    public partial class CtlKuaiQi : DevExpress.XtraEditors.XtraUserControl
    {
        public CtlKuaiQi()
        {
            InitializeComponent();
        }
        public void InitTryIF(ITryIF tryIF)
        {
            ctlAccount1.InitTryIF(tryIF);
            ctlMarketData1.InitTryIF(tryIF);
            ctlOrderHistory1.InitTryIF(tryIF);
            ctlOrderOnhand1.InitTryIF(tryIF);
            ctlTradeGroup1.InitTryIF(tryIF);
            ctlTradeHistory1.InitTryIF(tryIF);
            ctlTradeOnhand1.InitTryIF(tryIF);
            ctlUserOrder1.Init(tryIF);
        }

        public MyDBData GetFocuseIF()
        {
            return ctlMarketData1.GetFocuseRow();
        }
    }
}
